package com.yhy.common.core.constant;

/**
 *
 */
public interface SecurityConstants {
    /**
     * Basic认证前缀
     */
    String BASIC_PREFIX = "Basic ";
    /**
     * JWT令牌前缀
     */
    String JWT_PREFIX = "Bearer ";
    /**
     * 认证请求头key
     */
    String AUTHORIZATION_KEY = "Authorization";
    /**
     * JWT存储权限属性
     */
    String JWT_AUTHORITIES_KEY = "authorities";
    /**
     * JWT存储权限属性
     */
    String AUTHORIZATION_CLIENT = "client_id";
    /**
     * swagger 客户端clientid
     */
    String SWAGGER_CLIENT = "swagger";
    /**
     * JWT存储权限前缀
     */
    String AUTHORITY_PREFIX = "ROLE_";
    /**
     * JWT ID 唯一标识
     */
    String JWT_JTI = "jti";
    /**
     * JWT ID 过期时间
     */
    String JWT_EXP = "exp";
    /**
     * JWT载体key
     */
    String JWT_PAYLOAD_KEY = "payload";
    /**
     * 客户端模式
     */
    String CLIENT_CREDENTIALS = "client_credentials";
    /**
     * 用户ID字段
     */
    String DETAILS_USER_ID = "user_id";
    /**
     * 用户ID字段
     */
    String DETAILS_USER = "user";
    /**
     * 用户名字段
     */
    String DETAILS_USERNAME = "user_name";
    /**
     * 协议字段
     */
    String LICENSE = "license";
    /**
     * 项目的license
     */
    String MY_LICENSE = "made by Jax-li";
    /**
     * 认证 类型字段
     */
    String GRANT_TYPE = "grant_type";
    /**
     * {bcrypt} 加密的特征码
     */
    String BCRYPT = "{bcrypt}";
    /**
     * {noop} 加密的特征码
     */
    String NOOP = "{noop}";

    /**
     * 验证码key前缀
     */
    String VALIDATE_CODE_PREFIX = "VALIDATE_CODE:";

}
